<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreatePageStylesTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('page_styles', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 100)->comment('样式名称');
            $table->string('title', 100)->nullable()->comment('样式别名');
            $table->integer('pagetpl_id')->default(0)->unsigned()->comment('页面模板');
            $table->string('subtitle')->nullable()->comment('页面标题');
            $table->string('ui', 191)->nullable()->comment('设计图');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('page_styles');
    }
}
